<?
/**
 * Enter description here...
 *
 */
define('G_OUTPUT_REQUEST_AUTH_KEY', 1);
define('G_BIN_CHECK_INCLUDE', 1);
include "common.inc.php";

$tpl = Bin::getView('index.tpl.html');

$showPageObj = Bin::getShowPageObj(3);

$total = empty($_G_INPUT_['total']) ? $wikiObj->getWikiList('', true) : intval($_G_INPUT_['total']);
$showPageObj->setTotal($total);

$list = $wikiObj->getWikiList('', false, 'A.addTime DESC', $showPageObj->getLimit());
$tpl->assign("wikiInfo", $list);

$pageNumber = $showPageObj->getPreviousPage().$showPageObj->getFirstPage().$showPageObj->getPageNumber().$showPageObj->getLastPage().$showPageObj->getNextPage();

$tpl->assign("pageNumber", $pageNumber);

$tpl->output();
?>